using System.Collections.Generic;
using System.Diagnostics;

namespace AutoUnitTest.Common
{
    [DebuggerDisplay("Name={Name},Type={Type.Name}")]
    public class Vertex
    {
        public Vertex(VertexType type, string name, int id)
        {
            Type = type;
            Name = name;
            Id = id;
            IncomingEdges = new List<Edge>();
            OutgoingEdges = new List<Edge>();
            AccessibleVertex = new List<Vertex>();
            AccessingVertex = new List<Vertex>();
        }

        public int Id { get; set; }
        public string Name { get; set; }
        public VertexType Type { get; set; }

        public List<Edge> IncomingEdges{get;set;}
        public List<Edge> OutgoingEdges{get;set;}
        public List<Vertex> AccessibleVertex { get; private set; }
        public List<Vertex> AccessingVertex { get; private set; }
    }
}
